Web Service « Development « JPA Q&A





1. Problem with rest web service?    stackoverflow.com

I have a rest web service, that retrives data from my sql database using hibernate technology. While running, the web sevice throws error below

java.lang.NoClassDefFoundError: Could not initialize class com.sample.restlet.HibernateSessionFactory
   ...

2. Hibernate dies when JAX libraries added to project    stackoverflow.com

Please bear with me, I come from .net and am new to the java world. I have a Spring MVC 3 website that uses hibernate as a DAL. I am trying to ...

3. Preloading IUserType with values from webservice    stackoverflow.com

This post: http://kennytordeur.blogspot.com/2011/04/nhibernate-in-combination-with_06.html Describes how to load an entity from a resource other than a database, in this case a webservice. This is great, but if I load a number of ...

4. Jersey REST with Hibernate    stackoverflow.com

I'm pretty new to hibernate and jersey-ws. As a little test i've set up a jersey-ws with one method inside. It persist one JPA-Object (hibernate) in a database.

@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.TEXT_PLAIN)
public String addEntry(MyEntity entity)
{

 ...

5. Q 4 C. Bauer & G. King (7): Hibernate & webservices    coderanch.com

Dear authors, Webservices involve a significant amount of data transformations in order to make two parties understand each other. Can Hibernate play any role in the formalization of these interactions between services, or is it's use meant to be 'localized' and focussed to the internal transactions of an application? Cheers, Gian Franco Casula

6. Book promo: SOA Book and JPA    coderanch.com

Hi Tom, Thanks for your question. The book deals primarily with the use of JAX-WS, JAXB, and JSR-181, and JSR-109 to produce and consume Web services in the context of a Service Oriented Architecture (SOA). Object/Relational mapping with JPA is not covered. However, the techniques used in the book for creating Web services are certainly compatible with JPA. POJOs using JPA ...

7. Web Service & Hibernate    coderanch.com

8. Web Service & Hibernate    coderanch.com

9. Going crazy with webservices and Hibernate    coderanch.com

I have trying night and day to get this to work. It doesn't I have created two Hibernate annotated pojos. A Weather class and a Hepp class. Just to test for a much bigger project. The Weather class has many Hepp classes and the Hepp class has a Weather. package samples.demo; import java.io.Serializable; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; ...





10. deriving domain model - Hibernate style for web services    coderanch.com

Hi there, I would like to know if any one has worked on this or has any idea about the same. Like we derive a ready-to-use domain model from the underlying database by using Hibernate as O/R mapping solution, I would want to know can we follow a similar approach towards web services where in as a client we can derive ...

11. WebService for JPA Domain model dilemma    coderanch.com

12. Hibernate Problem    coderanch.com

Hi, I'm using Netbeans 6.9, Glassfish v2, and Hibernate 3.2.5 (I think). I Basically have a very simple web-app that reads from a database. I can run the web-app in Netbeans locally under glassfish v2 without any problems. Now I'm trying to get the web-app to work on actual web-server that uses tomcat. So what I do is copy all the ...

13. Web Service using hibernate    forum.hibernate.org

14. using Tuplizers for webservice calls?    forum.hibernate.org

hi.. i've been trying to figure if Tuplizers is my thing.. our systems uses a pojo object model which many of properties are brought from a legacy system. we cannot access the system directly because the info goes though a lot of changes until it reaches our system. the only way to do it , is via web services. so we ...

15. StaleConnectionException in WebService call    forum.hibernate.org

Hi All, We are getting StaleConnectionException error while making webservice calls made. This exception is not consistently occuring when every time the webservice calls made, but we could find this exception is occuring during the first webserice call is made. Moreover we are able to invoke the webservice, when the same operation is retried again. Below are our configuration details Application ...

16. Hibernate with webservice problems    forum.hibernate.org

Hi I'm using Hibernate as the core of a webservice designed to wrap up a database, and expose it to several clients written in .NET and java. Generally it has gone smoothly, however there are two problems, I was hoping somebody could help me find a solution to. Firstly, the java collection classes can not be sent out via a webservice, ...





17. Hibernate with web service...    forum.hibernate.org

I'm trying to get Hibernate to work with a web service implementation using Glue (used to be the MindElectric...) The problem is that although I can load simple objects with hibernate and transfer them to the client side fine, when trying to send an object with a collection inside it, I get the following error on the client side: java.rmi.UnmarshalException: java.io.IOException: ...

18. Why Hibernate with J2EE when devoloping a web service?    forum.hibernate.org

Hi, I have searched the Hibernate forum and other sources to come to conclusion, but so far I have not found one. So I would be glad to hear some opinion on that. What it is the benefit of using J2EE beside distributed transactions, security and remote access? I mean in order to have these advantages I still have to learn ...

19. Best Process for web service DTOs    forum.hibernate.org

Hi all. I need to have a support POJO model for basic manipulation of my data, but I also need to package up a large chunk of data for transmission across a web service. In this case, I need to send address book info along with users and group/user data. I could either manually map the basic classes to a DTO ...

20. data access with web services    forum.hibernate.org

21. Enumeration type versus WebServices    forum.hibernate.org

I have pojo object that have property that is enumeration type. Because PersistentEnum is no longer supported by Hibernate, I must use Custom Type. But there is a problem, because Custom Type must implement UserType interface, where java specific classes are used and this results in problem transfering such class through WebServices. How to solve this problem? Any help? Tnx lot. ...

22. Hibernate and Glue web services toolkit    forum.hibernate.org

Hi, I'm using hibernate with glue web services toolkit. I'm having some problems with serialization, since glue claims it doesn't know how to serialize the hibernate collections (bag, in this case). I've read about similar problems with hessian on this mailing list. My main question is : Is there any utility method that would "liberate" my object from hibernate collections ? ...

23. Web services and returning arrays    forum.hibernate.org

Hi, I've a peculier problem. Web services created using Axis do not encourage usage of collections... And hibernate requires index to be stored in DB to use arrays...otherwise one needs to use bag or list... I cannot alter our DB schema...So, is there any way that I can use Hibernate with web services backend system in many-to-many and one-to-many relationships? Thanks. ...

24. webservices+hibernate    forum.hibernate.org

25. Hibernate arrays and Web Services    forum.hibernate.org

26. Hibernate in Web Services - an effective startup philosophy?    forum.hibernate.org

Hi ! I am implementing a set of web services. Each of them using Hibernate when accessing the database. The problem is a follows: Everytime a webservice is invoked, Hibernate starts it's initialization of the SessionFactory, reading all the mapping-files etc... Very time consuming. Is there an easy way to avoid all this startup. That is: Do it once and keep ...

27. Web Services and LazyInitializaionException    forum.hibernate.org

28. How to profiling and monitor heibernate webservice    forum.hibernate.org

Hey, I have a webservice that get a string. The string contains complex events objects .The service parse the string by Jaxb (i used hyberjaxb2) and save each event in a different session to the DB. I wrote 3 clients (on differents computers) that sends events to the webservice (each client have 10 threads). It took around 2 seconds to each ...

29. Q: Hibernate/WebService question    forum.hibernate.org

30. Using Hibernate w/ Web Services: Best practices?    forum.hibernate.org

We are planning to move our user interface to Flex as our applications needs that kind of user interface. To use flex, you have to expose your backend via Web Services (Java Remoting is out for us because of cost). However, our entire backend is Hibernate based and they cannot be simply returned back not only because of proxy serialization/deserialization issues ...

31. Need advice on hibernate and webservices    forum.hibernate.org

Hi! I need some advice on Hibernate and WebServices I want to use webservices to send and recieve java objects. It works fine with pojos. How can I send objects with database id , modify in client and send to server and just persist the object again? ex. Client makes request for Page objects thru Webservice and get a collection of ...

32. Hibernate and Web-Service    forum.hibernate.org

33. Hibernate - Web Service    forum.hibernate.org

No, the WS isnt part of a web application. Its waiting for a client to make queries. It is implemented in Java and its runnig on Glassfish. I would need a way to start the processes that are automaticaly launched when session is created for fisrt time (entities mapping, etc) before I make a query to the WS. IE: I start ...

34. Could not connect - WebService    forum.hibernate.org

Hi, i am using Hibernate 3.0 in a WebService Servlet to make DB operations. But i don't really know how to use Hibernate in a Servlet. How shall i work with the SessionFactory? Now i open a Session and a Transaction in the Method and at the end i commit the Transaction and close the session. This works for the very ...

35. Ignored Hibernate Question Regarding Web Services    forum.hibernate.org

Are you tired of banging your head against wall because of the infamous LazyInitializationException? You're not the only one. Exposing your EJBs that return JPA entities as a web service is really bugging most developers crazy. Or are hibernate entity objects shouldn't be used as a return type for any web methods in a web service? This is not only applicable ...

36. Getting around LazyInitializationException in web services    forum.hibernate.org

Newbie Joined: Wed Jul 29, 2009 11:01 pm Posts: 7 We use Glassfish 2.1 for our application development and have recently switched to use Hibernate as our JPA provider. Surprisingly, it seemed not easily possible to expose entity beans managed by Hibernate JPA through web services implemented as EJB session beans. I kept getting a LazyInitializationException thrown every time an entity ...

37. Webservice and Hibernate question    forums.oracle.com

hi, i implemented several POJO business services that works fine, when i process the JUnit tests, those services use underlying DAO objects through the hibernate framework. i wanted to expose this busines layer to the outside "world" using webservice and more specificaly the AXIS framework. i generate the skeleton (server side WS) and stub (client side WS) parts, i use JUnit ...